-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Avatar] Support cross origin in useImageLoadingStatus #3261
base: main
Are you sure you want to change the base?
Conversation
@chaance can you review? |
Nice, hopefully this gets merged soon, I'm having this exact issue as well. Btw @ozgurozalp, I think you have to assign crossOrigin to the image variable before the |
…nd `crossOrigin` are set beforehand
Yes my friend, you may be right, I fixed that part too. |
@StephenHaney @vladmoroz @lucasmotta @hadihallak @chaance is there a chance that this PR can go in next release? |
I need this! |
when will it be merged? |
A solution that will solve my problem too 👍 |
This will solve my problem, when will it merge? |
Description
Add
crossOrigin
Support touseImageLoadingStatus
HookThis PR adds
crossOrigin
support to theuseImageLoadingStatus
hook to handle images hosted on external domains that require specificcrossOrigin
settings (anonymous
oruse-credentials
).By including this option, we ensure broader compatibility with external image sources and resolve potential loading issues.
Note: I haven’t added a test for this as I’m not entirely sure how to approach testing this scenario.